
/**
 * Write a description of class Autobus here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Autobus
{
   int places_assises;
   int places_debout ;
   
   int nb_assises = 0;
   int nb_debout = 0;
   Passager passenger;


    /**
     * Constructor for objects of class Autobus
     */
    public Autobus(int pAssises,int pDebout,int nbAssises,int nbDebout)
    {
       places_assises = pAssises;
       places_debout = pDebout ;
   
       nb_assises = nbAssises;
       nb_debout = nbDebout;
       passenger = new Passager();

    }

    public int getPlacesAssises(){
        return places_assises;
    }
    
    public int getPlacesDebout(){
        return places_debout;
    }
    
    public int getNbAssises(){
        return nb_assises;
    }
    
    public int getNbDebout(){
        return nb_debout;
    }
    
    public boolean ChangerEnAssis(Passager p){
        boolean bool = false;
        if(places_assises < nb_assises)
            {p.changerEtatEnAssis();
            bool = true;}
        return bool;
    }

}
